package com.lb.jwitter;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.ForeignKey;

@Entity
@Table (name="tbl_QLDTTXA_ThoiKhoaBieuDuKien")
public class Tbl_QLDTTXA_ThoiKhoaBieuDuKien implements Serializable {
   private static final long serialVersionUID = -1989579066723007050L;

   private Long id;
   private Tbl_QLDTTXA_DM_NgayTrongTuan ngayId = null;
   private Tbl_QLDTTXA_DM_Phong phongId = null;
   private Tbl_QLDTTXA_DM_TietHoc tietHocId = null;
   private Tbl_QLDTTXA_HocKyTrongNam hocKyId = null;
   private Tbl_QLDTTXA_LopMonHoc_DuKien lopMonHocDuKienId = null;
   private Boolean daMoLop;

   @Id
   @GeneratedValue
   public Long getId() {
	    return id;
   }
   public void setId(Long id) {
	    this.id= id;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="ngayId")
   @ForeignKey(name="FK_tbl_QLDTTXA_DM_NgayTrongTuan_tbl_QLDTTXA_ThoiKhoaBieuDuKien")
   public Tbl_QLDTTXA_DM_NgayTrongTuan getNgayId() {
	    return ngayId;
   }
   public void setNgayId(Tbl_QLDTTXA_DM_NgayTrongTuan ngayId) {
	    this.ngayId=ngayId;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="phongId")
   @ForeignKey(name="FK_tbl_QLDTTXA_DM_Phong_tbl_QLDTTXA_ThoiKhoaBieuDuKien")
   public Tbl_QLDTTXA_DM_Phong getPhongId() {
	    return phongId;
   }
   public void setPhongId(Tbl_QLDTTXA_DM_Phong phongId) {
	    this.phongId=phongId;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="tietHocId")
   @ForeignKey(name="FK_tbl_QLDTTXA_DM_TietHoc_tbl_QLDTTXA_ThoiKhoaBieuDuKien")
   public Tbl_QLDTTXA_DM_TietHoc getTietHocId() {
	    return tietHocId;
   }
   public void setTietHocId(Tbl_QLDTTXA_DM_TietHoc tietHocId) {
	    this.tietHocId=tietHocId;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="hocKyId")
   @ForeignKey(name="FK_tbl_QLDTTXA_HocKyTrongNam_tbl_QLDTTXA_ThoiKhoaBieuDuKien")
   public Tbl_QLDTTXA_HocKyTrongNam getHocKyId() {
	    return hocKyId;
   }
   public void setHocKyId(Tbl_QLDTTXA_HocKyTrongNam hocKyId) {
	    this.hocKyId=hocKyId;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="lopMonHocDuKienId")
   @ForeignKey(name="FK_tbl_QLDTTXA_LopMonHoc_DuKien_tbl_QLDTTXA_ThoiKhoaBieuDuKien")
   public Tbl_QLDTTXA_LopMonHoc_DuKien getLopMonHocDuKienId() {
	    return lopMonHocDuKienId;
   }
   public void setLopMonHocDuKienId(Tbl_QLDTTXA_LopMonHoc_DuKien lopMonHocDuKienId) {
	    this.lopMonHocDuKienId=lopMonHocDuKienId;
   }

   public Boolean getDaMoLop() {
   	return daMoLop;
   }
   public void setDaMoLop(Boolean daMoLop) {
   	this.daMoLop= daMoLop;
   }
}//endClass 

